<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小红书抽奖页面</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            background-color: #f3f3f3;
        }
        h1 {
            color: #333;
        }
        #lottery-container {
            margin: 50px auto;
            padding: 20px;
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 80%;
            max-width: 400px;
        }
        #lottery-button {
            background-color: #ff6f61;
            color: #fff;
            padding: 10px 20px;
            font-size: 18px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 20px;
        }
        #result {
            font-size: 16px;
            color: #ff6f61;
            margin-top: 20px;
            padding: 10px;
            border-radius: 5px;
        }
    </style>
</head>
<body>
    <h1>小红书抽奖活动</h1>
    <div id="lottery-container">
        <p>点击下方按钮开始抽奖</p>
        <button id="lottery-button">抽取楼层</button>
        <p id="result"></p>
    </div>

    <script>
        var minFloor = 1;
        var maxFloor = 28;

        document.getElementById('lottery-button').addEventListener('click', function() {
            var winningFloor = Math.floor(Math.random() * (maxFloor - minFloor + 1)) + minFloor;
            document.getElementById('result').innerText = '恭喜！中奖楼层是：' + winningFloor + '楼';
        });
    </script>
</body>
</html>
